package com.business.bean.system;

import java.util.ArrayList;
import java.util.List;

import net.sf.rose.jdbc.bean.annotation.Column;
import net.sf.rose.jdbc.bean.annotation.Table;
import net.sf.rose.jdbc.bean.annotation.Type;

/** 
 * @author fengjian E-mail: 9110530@qq.com 
 * @version 创建时间：2018年8月10日
 * 类说明 ：菜单数据类
 * , orderBy = "parentID,sequence ASC"
 */
@Table(name = "SYS_MENU", description = "菜单数据信息表")
public class MenuBean {

	@Column(pk = true, type = Type.变长文本, description = "主键编号", canNull = false, size = 32, policy = "UUID")
	private String menuID = null;

	@Column(type = Type.变长文本, description = "图标", size = 150)
	private String icon = null;

	@Column(type = Type.变长文本, description = "标题", size = 250)
	private String label = null;

	@Column(type = Type.变长文本, description = "路径", size = 150)
	private String path = null;

	@Column(type = Type.变长文本, description = "允许角色", size = 250)
	private String authorRole = null;

	@Column(type = Type.变长文本, description = "禁用角色", size = 250)
	private String forbidRole = null;

	@Column(type = Type.数字整型, description = "排序")
	private int sequence = 0;

	@Column(type = Type.数字整型, description = "使用状态")
	private int used = 1;

	@Column(type = Type.变长文本, description = "父编号", size = 32)
	private String parentID = null;

	@Column(type = Type.变长文本, description = "机构编号", size = 32)
	private String instID = null;

	private List<MenuBean> children = new ArrayList<>();

	public String getMenuID() {
		return menuID;
	}

	public void setMenuID(String menuID) {
		this.menuID = menuID;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public String getAuthorRole() {
		return authorRole;
	}

	public void setAuthorRole(String authorRole) {
		this.authorRole = authorRole;
	}

	public String getForbidRole() {
		return forbidRole;
	}

	public void setForbidRole(String forbidRole) {
		this.forbidRole = forbidRole;
	}

	public int getSequence() {
		return sequence;
	}

	public void setSequence(int sequence) {
		this.sequence = sequence;
	}

	public String getParentID() {
		return parentID;
	}

	public void setParentID(String parentID) {
		this.parentID = parentID;
	}

	public int getUsed() {
		return used;
	}

	public void setUsed(int used) {
		this.used = used;
	}

	public String getInstID() {
		return instID;
	}

	public void setInstID(String instID) {
		this.instID = instID;
	}

	public List<MenuBean> getChildren() {
		return children;
	}

	public void setChildren(List<MenuBean> children) {
		this.children = children;
	}

}
